using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThuySan.Bussiness
{
	[Serializable]
	[Table("[dbo].[ProductTag]")]
	public partial class ProductTag
	{

		#region Properties

		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[Required]
		[Column("ProductTagId")]
		public System.Int32 ProductTagId { get; set; }

		[Column("ProductId")]
		public System.Int32? ProductId { get; set; }

		[Column("TagId")]
		public System.Int32? TagId { get; set; }

		#endregion

		#region Navigation

		[ForeignKey("ProductId")]
		public virtual Product Product { get; set; }
		[ForeignKey("TagId")]
		public virtual Tag Tag { get; set; }

		#endregion

	}
}
